package com.zhz.mall.portal.contant;

import com.zhz.mall.common.api.IErrorCode;
import lombok.AllArgsConstructor;

/**
 * @author zhouhengzhe
 * @date 2023/2/4
 */
@AllArgsConstructor
public enum UserErrorCode implements IErrorCode {

    LOGIN_FAIL(1001, "用户登录失败，请重新登录"),
    USERNAME_OR_PASSWORD_FAIL(1002, "用户名或密码错误!"),
    INCORRECT_PASSWORD(1003, "密码不正确");

    private final long code;
    private final String message;

    @Override
    public long getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
